package com.uzai.console.dto.wechatwork.wxworkcontacts;

import com.uzai.console.dto.BaseDto;
import com.uzai.console.dto.user.wechatuser.WechatUserGroupSendMsgDto;
import com.uzai.console.entity.GroupSendJob;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Auther: liuqi
 * @Date: 2021/8/10 14:58
 * @Description:
 */
@ApiModel("企业微信|企业通信录增加群发消息任务参数")
public class WxworkAddBatchSendMessageTaskDto extends BaseDto {

    @ApiModelProperty("查询条件参数")
    private WxworkContactsQuery wxworkContactsQuery;

    @ApiModelProperty("群发消息参数")
    private WechatUserGroupSendMsgDto wechatUserGroupSendMsgDto;

    @ApiModelProperty(value = "群发消息主任务", hidden = true)
    private GroupSendJob groupSendJobParent;

    public WxworkContactsQuery getWxworkContactsQuery() {
        if(wxworkContactsQuery == null){
            wxworkContactsQuery = new  WxworkContactsQuery();
        }
        wxworkContactsQuery.setMerId(super.getMerId());
        return wxworkContactsQuery;
    }

    public void setWxworkContactsQuery(WxworkContactsQuery wxworkContactsQuery) {
        this.wxworkContactsQuery = wxworkContactsQuery;
    }

    public WechatUserGroupSendMsgDto getWechatUserGroupSendMsgDto() {
        return wechatUserGroupSendMsgDto;
    }

    public void setWechatUserGroupSendMsgDto(WechatUserGroupSendMsgDto wechatUserGroupSendMsgDto) {
        this.wechatUserGroupSendMsgDto = wechatUserGroupSendMsgDto;
    }

    public GroupSendJob getGroupSendJobParent() {
        return groupSendJobParent;
    }

    public void setGroupSendJobParent(GroupSendJob groupSendJobParent) {
        this.groupSendJobParent = groupSendJobParent;
    }
}
